# _*_ coding: UTF-8 _*_
# @Time     : 2021/10/22 下午 04:52
# @Author   : Li Jie
# @Site     : http://www.hzdledu.cn/
# @File     : c6s2_元祖Tuple.py
# @Software : PyCharm

# 元祖Tulple
# Tuple的定义
tup1 = (1, 1.1, True, '汇智动力')

# 操作元祖的函数
tup2 = (1, 0, 99, -1)
print(len(tup2))
print(max(tup2))
print(min(tup2))

print('--------------------------------')
# 元祖的增、删、改、查
# 元祖不能增删改
tup2 = (1, 0, 99, -1)
# tup2[0] = 10

print('--------------------------------')
# 元祖的查询遍历
for i in tup2:
    print(i,end=',')

print()
for i in range(len(tup2)):
    print(f'{i}:{tup2[i]}')
